package main

import "fmt"

func main() {
	list1 := []int{1, 2, 58, 98, 2, 15, 7}
	foo(list1)

}

func foo(l []int) {
	for i := range l {
		fmt.Println(i)
	}
}
